package com.ruoyi.jx.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员余额对象 member_balance_record
 * 
 * @author p
 * @date 2021-10-07
 */
public class MemberBalanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 逻辑删除 */
    private Integer deleted;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private Long type;

    /** 操作金额 */
    @Excel(name = "操作金额")
    private BigDecimal changeMoney;

    /** 变动之前的金额 */
    @Excel(name = "变动之前的金额")
    private BigDecimal beforeMoney;

    /** 变动之后的金额 */
    @Excel(name = "变动之后的金额")
    private BigDecimal afterMoney;

    /** 会员id */
    private Long memberId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setChangeMoney(BigDecimal changeMoney) 
    {
        this.changeMoney = changeMoney;
    }

    public BigDecimal getChangeMoney() 
    {
        return changeMoney;
    }
    public void setBeforeMoney(BigDecimal beforeMoney) 
    {
        this.beforeMoney = beforeMoney;
    }

    public BigDecimal getBeforeMoney() 
    {
        return beforeMoney;
    }
    public void setAfterMoney(BigDecimal afterMoney) 
    {
        this.afterMoney = afterMoney;
    }

    public BigDecimal getAfterMoney() 
    {
        return afterMoney;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("deleted", getDeleted())
            .append("type", getType())
            .append("changeMoney", getChangeMoney())
            .append("beforeMoney", getBeforeMoney())
            .append("afterMoney", getAfterMoney())
            .append("memberId", getMemberId())
            .toString();
    }
}
